﻿<Window x:Class="MainApp.Style.ForStyle"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ForStyle" Height="300" Width="300" Background="#0d151F">
  <StackPanel>
    <Border Width="75" Height="30"  BorderBrush="#28460A"  BorderThickness="1" Background="#122033">
      <TextBlock Foreground="White" Text="Go"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Border>

    <Border Width="75" Height="30"  BorderBrush="#2D76CA"  BorderThickness="1" Background="#163B66" Margin="0,10,0,0">
      <TextBlock Foreground="White" Text="Go"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Border>

    <Border Width="75" Height="30"  BorderBrush="#2F7AD5"  BorderThickness="1"  Margin="0,10,0,0">
      <Border.Background>
        <RadialGradientBrush Center="0.5,0.5" >
          <RadialGradientBrush.GradientStops>
            <GradientStop Color="#FF5959D8"  Offset="0"/>
            <GradientStop Color="#193A64"  Offset="1"/>
          </RadialGradientBrush.GradientStops>
        </RadialGradientBrush>
      </Border.Background>
      <TextBlock Foreground="White" Text="Go"  HorizontalAlignment="Center" VerticalAlignment="Center"/>
    </Border>

    <Button Content="Go" Width="75" Height="30"  Margin="0,10,0,0">
      <Button.Style>
        <Style TargetType="Button">
          <Style.Setters>
            <Setter Property="Template">
              <Setter.Value>
                <ControlTemplate TargetType="Button">
                  <Border Width="75" Height="30"  x:Name="border" BorderBrush="#28460A"  BorderThickness="1" Background="#122033">
                    <ContentPresenter  HorizontalAlignment="Center" VerticalAlignment="Center"/>
                  </Border>
                  <ControlTemplate.Triggers>
                    <Trigger Property="IsMouseOver" Value="True">
                      <Setter Property="BorderBrush" TargetName="border" Value="#2D76CA" />
                      <Setter Property="Background" TargetName="border" Value="#163B66" />
                    </Trigger>
                    <Trigger Property="IsPressed" Value="True">
                      <Setter Property="BorderBrush" TargetName="border" Value="#2F7AD5" />
                      <Setter Property="Background" TargetName="border" >
                        <Setter.Value>
                          <RadialGradientBrush Center="0.5,0.5" >
                            <RadialGradientBrush.GradientStops>
                              <GradientStop Color="#FF5959D8"  Offset="0"/>
                              <GradientStop Color="#193A64"  Offset="1"/>
                            </RadialGradientBrush.GradientStops>
                          </RadialGradientBrush>
                        </Setter.Value>
                      </Setter>
                    </Trigger>
                  </ControlTemplate.Triggers>
                </ControlTemplate>
              </Setter.Value>
            </Setter>
          </Style.Setters>
        </Style>
      </Button.Style>
    </Button>

  </StackPanel>
</Window>
